home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / the-incredibles-save-the-day.swf / scripts / __Packages / mx / utils / ClassFinder.as next >
Text File  |  2011-01-13  |  634b  |  27 lines

  1. class mx.utils.ClassFinder
  2. {
  3.    function ClassFinder()
  4.    {
  5.    }
  6.    static function findClass(fullClassName)
  7.    {
  8.       if(fullClassName == null)
  9.       {
  10.          return null;
  11.       }
  12.       var _loc3_ = _global;
  13.       var _loc4_ = fullClassName.split(".");
  14.       var _loc2_ = 0;
  15.       while(_loc2_ < _loc4_.length)
  16.       {
  17.          _loc3_ = _loc3_[_loc4_[_loc2_]];
  18.          _loc2_ = _loc2_ + 1;
  19.       }
  20.       if(_loc3_ == null)
  21.       {
  22.          _global.__dataLogger.logData(null,"Could not find class \'<classname>\'",{classname:fullClassName},mx.data.binding.Log.BRIEF);
  23.       }
  24.       return _loc3_;
  25.    }
  26. }
  27.